package com.wang.utils;

/**
 * @Classname VerifyCodeUtil
 * @Description TODO
 * @Date 2025/3/21 11:44
 * @Created by pc
 */
public class VerifyCodeUtil {

    public static String getCode(){
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < ConstantUtil.VERIFY_CODE_LENGTH; i++) {
            int num = (int)(Math.random() * 10);
            sb.append(num);
        }
        return sb.toString();
    }

    public static void main(String[] args) {
        System.out.println(VerifyCodeUtil.getCode());
    }
}
